package com.zhentao.mapper;

import com.zhentao.pojo.ContractItem;
import com.zhentao.vo.ContractItemVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author DELL
* @description 针对表【contract_item(合同明细表)】的数据库操作Mapper
* @createDate 2025-07-29 19:27:42
* @Entity com.zhentao.pojo.ContractItem
*/
@Mapper
public interface ContractItemMapper extends BaseMapper<ContractItem> {

    /**
     * 根据合同ID查询合同明细（包含产品信息）
     */
    List<ContractItemVO> selectContractItemsWithProduct(@Param("contractId") Long contractId);

}




